package com.atguigu.exam;

/**
 * @author xbd
 * @create 2021-05-24 15:40
 */
public class HelloTest {
    public static void main(String[] args) {
        String s1 = "hello";
        String s2 = "hello";
        String s3 = new String("hello");
        s1 += "world";

        System.out.println(s1 == s2);
        System.out.println(s1 == s3);
        System.out.println(s2 == s3);

    }
}
